<?php
class ZSourceItem{
    /**
     * Source title
     * @var String
     */
    private $source;
    /**
     * Url of source
     * @var String
     */
    private $url;
    /**
     * Number of posts
     * @var int
     */
    private $numberOfPosts;
    /**
     * Number of authors
     * @var int
     */
    private $numberOfAuthors;
    /**
     * Number of threads
     * @var int
     */
    private $numberOfThreads;
    /**
     * Social Media Type
     * @var int
     */
    private $smt;

    /**
     * @param $source String
     * @param $url String
     * @param $posts int Number of Posts
     * @param $authors int Number of Authors
     * @param $threads int Number of Threads
     * @param $smt int SMT id
     */
    public function __construct($source, $url, $posts, $authors, $threads, $smt){
        $this->source           = $source;
        $this->url              = $url;
        $this->numberOfPosts    = $posts;
        $this->numberOfAuthors  = $authors;
        $this->numberOfThreads  = $threads;
        $this->smt              = $smt;
    }

    /**
     * Get source title
     * @return String
     */
    public function getSource(){
        return $this->source;
    }

    /**
     * Get the url of source
     * @return String
     */
    public function getUrl() {
        return $this->url;
    }

    /**
     * Get number of posts
     * @return intG
     */
    public function getNumberOfPosts(){
        return $this->numberOfPosts;
    }

    /**
     * Get number of authors
     * @return int
     */
    public function getNumberOfAuthors(){
        return $this->numberOfAuthors;
    }

    /**
     * Get number of threads
     * @return int
     */
    public function getNumberOfThreads(){
        return $this->numberOfThreads;
    }

    /**
     * Get social media type
     * @return int
     */
    public function getSmt(){
        return $this->smt;
    }
}


?>